package org.example.crazy.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Administrator
 */
@Getter
@AllArgsConstructor
public enum DemoEnum {
    TEST1(1, "2"),
    TEST2(2, "3");

    private final Integer num;
    private final String str;

    public void valuesTest(){
        for (DemoEnum value : DemoEnum.values()) {
            System.out.println(value);
        }
    }
}
